{% extends "page/index.html" %}
{% load i18n fb_versions %}

{% block jscript %}
<script type="text/javascript" src="{{MEDIA_URL}}js/prototype.js"></script>
<script type="text/javascript" src="{{MEDIA_URL}}js/scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="{{MEDIA_URL}}js/lightbox.js"></script>
{% endblock %}


{% block css %}
<link rel="stylesheet" href="{{MEDIA_URL}}css/lightbox.css" type="text/css" media="screen" />
{% endblock %}

{% block content %}
    {{ block.super }}
    <table class="pictures">
      <tr>
      {% for photo in gallery.get_images %}
	<td>
	  <a href="{% version photo 'big' %}" rel="lightbox[roadtrip]">
	    <img src="{% version photo 'thumbnail' %}" />
	  </a>
	</td> 
	{% cycle '' '' '' '' '</tr><tr>' %}
	{% empty %}
	<td>{% trans 'Aucune photo dans la gallerie' %}</td>
      {% endfor %}
      </tr>
    </table>
{% endblock %}

{% block admin %}
    <a href="/admin/filebrowser/browse/?dir={{ gallery.slug|iriencode }}">Administration</a>
{% endblock %}
